﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FoneBuddy.LinqModel.Data;
using FoneBuddy.LinqData;
using FoneBuddy.LinqModel;

public partial class InActiveMerchantList : System.Web.UI.Page
{
    IDataRepository _dataObject = new DataRepository();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            getMerchants();
    }
    private void getMerchants()
    {
        Merchant merchant = new Merchant();
        List<Merchant> merchants = new List<Merchant>();
        merchant = new Merchant(_dataObject);

        merchants = merchant.GetInactive();

        if (merchants != null)
        {
            rptMerchant.DataSource = merchants;
            rptMerchant.DataBind();
        }
    }
}